package com.example.auth.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * sys_config
 *
 * @author cuihaida
 */
@Data
public class SysConfig {
    /**
     * id
     */
    private Long id;

    /**
     * config key
     */
    private String key;

    /**
     * config value
     */
    private String value;

    /**
     * remark
     */
    private String remark;

    /**
     * the order of display
     */
    private Integer orderNum;

    /**
     * create time
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime createTime;
}
